package com.yc.myspringboot.mq;

//import org.springframework.amqp.rabbit.annotation.RabbitHandler;
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author: DevanYan
 * @create: 2019-05-28 11:46
 */

//消息的消费者
@Component
//@RabbitListener(queues = "hello")
public class Consumer {

//    @RabbitHandler
//    public void use(String message) {
//        System.out.println("消费了一条消息 : " + message);
//    }

}